package com.jade.zsy.sal.vo;

import com.jade.zsy.sal.enity.SODetail;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Transient;
import java.math.BigDecimal;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: jinya
 * Date: 2017/6/3
 * Time: 13:55
 * TEL :17701640710   MAIL:2009_jinya@163.com
 * To change this template use File | Settings | File Templates.
 */
@Data
@ApiModel(value ="销售订单")
public class SOVo {

    @ApiModelProperty(value = "id")
    private long id;
    @ApiModelProperty(value = "单据编号")
    private String recordNo; /** 单据编号 **/
    @ApiModelProperty(value = "单据日期")
    private String recordDate; /** 单据日期 **/
    @ApiModelProperty(value = "销售类型")
    private String salesType;/** 单据编号 **/
    @ApiModelProperty(value = "单据编号")
    private long partnerId;/** 客户编号 **/
    @ApiModelProperty(value = "单据编号")
    private String partnerName;/** 客户名称 **/
    @ApiModelProperty(value = "单据编号")
    private String phone;/** 客户联系人手机 **/
    @ApiModelProperty(value = "单据编号")
    private String tel;/** 客户联系人电话 **/
    @ApiModelProperty(value = "单据编号")
    private String fax;/** 客户联系人传真 **/
    @ApiModelProperty(value = "单据编号")
    private String person;/** 客户联系人姓名 **/
    @ApiModelProperty(value = "单据编号")
    private String email;/** 客户联系人邮箱 **/
    @ApiModelProperty(value = "客户联系人地址")
    private String address;/** 客户联系人地址 **/
    @ApiModelProperty(value = "收货方名称")
    private String deliverName;/** 收货方名称 **/
    @ApiModelProperty(value = "收货方手机")
    private String deliverMobile;/** 收货方手机 **/
    @ApiModelProperty(value = "收货人电话")
    private String deliverTel;/** 收货人电话 **/
    @ApiModelProperty(value = "收货人地址")
    private String deliverAddress;/** 收货人地址 **/
    @ApiModelProperty(value = "总数量")
    private double totalQty=00.0;/** 总数量 **/
    @ApiModelProperty(value = "已经发运数量")
    private double deliveryQty=0.0;/** 已经发运数量 **/
    @ApiModelProperty(value = "总件数")
    private int totalCount=0;/** 总件数 **/
    @ApiModelProperty(value = "总净重")
    private double totalNetWeight = 0.0;/** 总净重 **/
    @ApiModelProperty(value = "总毛重")
    private double totalGrossWeight = 0.0;/** 总毛重 **/
    @ApiModelProperty(value = "总货值")
    private BigDecimal totalAmount = new BigDecimal(0);/** 总货值 **/
    @Transient
    private List<SODetail> soDetailList;
}
